﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConditionalStatement
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Driving License Exam");

            Console.Write("Your Age: ");
            int age = int.Parse(Console.ReadLine());

            /*
            if(age >= 18)
            {
                Console.WriteLine("You may procede to exam");
            }

            if(age < 18)
            {
                Console.WriteLine("Sorry, you are not allowed for the exam");
            }
            */

            if (age >= 18)
            {
                Console.WriteLine("You may procede to exam");
            }
            else
            {
                Console.WriteLine("Sorry, you are not allowed for the exam");
            }

            Console.ReadKey();
        }
    }
}
